﻿<?php
echo '<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <title>Administrator Control Panel - '.$page_title.'</title>
	<meta name="author" content="Invisible Man" />
    <link rel="stylesheet" href="theme/'.$back_end.'/css/styles.css"';
    echo '<br />';
    if (isset($script)) {
        foreach ($script as $name => $value) {
            echo '<script type="text/javascript" src="../js/' .$value. '"></script>';
        }
        
    }
    
    echo '
</head>

<body>
    <div id="layout">
        <div id="banner_top">
            Chức năng: '.$page_title.'
        </div>
        <div id="nav_bar">
            <table style="width: 100%;">
                <tr>
                    <td>
                        <a href="index.php">Trang chủ</a>';   
                       if (isset($_SESSION['username'])) {                
                           if (isset($menu_ex)) {
                                foreach ($menu_ex as $key => $value) {
                                    echo ' | <a href="'.$key.'">'.$value. '</a>';
                                }
                           }  
                       } 
                    echo '              
                    </td>
                    <td style="text-align: right;">';
                    if (isset($_SESSION['username'])) {
                        echo 'Xin chào '.$_SESSION["username"].' | <a href="logout.php">Logout</a>';
                    }
                    echo '
                    </td>
                </tr>
            </table>
        </div>
        <div id="content">';
?>
